package com.tang.service.impl;

import com.tang.service.Order;
import com.tang.service.Stock;

/**
 * 销售命令实现
 */
public class SellStock implements Order {

    private final Stock abcStock;

    public SellStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }

}
